package top.jle.wx.proxy.domain.templateMsg;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.StringUtils;

@Schema(title="跳转到指定URL的模板消息请求体")
@Getter
@Setter
public class ToURLMessageOption extends TemplateMessage{

    @Schema(title="需要跳转的URL")
    private String url;

    @Override
    public boolean valid() {
        return super.valid() && StringUtils.isNotBlank(this.url);
    }

}
